<?php


define('HOME_URI', network_site_url( '/' ));
define('HOME_NAME', get_bloginfo( 'name' ));
define('THEME_URL', get_bloginfo( 'template_url' ));
define('THEME_NAME', 'zonthemes');
define('THEME_SLUG', 'zonthemes');
define('THEME_VERSION', '1.0.0');

define('THEME_PATH', get_template_directory());
define('THEME_DIR', get_template_directory_uri());

define('INCLUDES_PATH', THEME_PATH. '/includes');
define('INCLUDES_DIR', THEME_DIR. '/includes');
define('BLOCK_PATH', THEME_PATH. '/includes/blocks');

define('ADMIN_PATH',get_template_directory() . '/admin/' );
define('ADMIN_DIR',get_template_directory_uri() . '/admin/' );

require_once(ADMIN_PATH.'index.php');
require_once(INCLUDES_PATH.'/zonthemes-include.php');

function zonthemes_wp_title( $title, $sep ) {
	global $paged, $page;

	if ( is_feed() )
		return $title;

	// Add the site name.
	$title .= get_bloginfo( 'name' );

	// Add the site description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		$title = "$title $sep $site_description";

	// Add a page number if necessary.
	if ( $paged >= 2 || $page >= 2 )
		$title = "$title $sep " . sprintf( __( 'Page %s', 'zonthemes' ), max( $paged, $page ) );

	return $title;
}
add_filter( 'wp_title', 'zonthemes_wp_title', 10, 2 );

//register menu
//register menu
function register_my_menu() {
  register_nav_menu('header-menu',__( 'Header Menu' ));
}
add_action( 'init', 'register_my_menu' );

